import request from '@/utils/request'

// 查询用户愿望列表
export function listWish(query) {
  return request({
    url: '/function/wish/list',
    method: 'get',
    params: query
  })
}

// 查询用户愿望详细
export function getWish(wishId) {
  return request({
    url: '/function/wish/' + wishId,
    method: 'get'
  })
}

// 新增用户愿望
export function addWish(data) {
  return request({
    url: '/function/wish',
    method: 'post',
    data: data
  })
}

// 修改用户愿望
export function updateWish(data) {
  return request({
    url: '/function/wish',
    method: 'put',
    data: data
  })
}

// 删除用户愿望
export function delWish(wishId) {
  return request({
    url: '/function/wish/' + wishId,
    method: 'delete'
  })
}
